<template>
    <IFrame v-if="!loading" v-loading="loading" :src="src" />
</template>
<script lang="ts" setup>


defineOptions({ name: 'InfraGrafana' })

const loading = ref(true) // 是否加载中
const src = ref('https://grafana-lake.demo.devlake.io/grafana/d/msSjEq97z/gitlab?orgId=1')

/** 初始化 */
onMounted(async () => {
  try {
    //console.log(src)
  } finally {
    loading.value = false
  }
})
</script>
